package com.mimaxueyuan.disruptor.demo3;

import com.lmax.disruptor.ExceptionHandler;

/**
 * @author: Kevin
 * @官网: 	www.mimaxueyuan.com
 * @Q Q群:	660567408
 * @Email:	mimaxueyuan@163.com
 * [每天进步一点点、人生带来大改变...]
 * [本代码对应视频地址:http://study.163.com/course/introduction/1004573050.htm]
 */
public class UserEventExceptionHandler2 implements ExceptionHandler<UserEvent> {

	public void handleEventException(Throwable ex, long sequence, UserEvent event) {
		System.out.println("UserEventExceptionHandler2.handleEventException->"+event+"->"+ex.getMessage());
	}

	public void handleOnStartException(Throwable ex) {
		System.out.println("UserEventExceptionHandler2.handleOnStartException->"+ex.getMessage());
	}

	public void handleOnShutdownException(Throwable ex) {
		System.out.println("UserEventExceptionHandler2.handleOnShutdownException->"+ex.getMessage());
	}

}
